<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg">
  <head>
    <title>Exiting Kawa</title>
    <link rel="stylesheet" type="text/css" href="docbook-epub.css"/>
    <link rel="stylesheet" type="text/css" href="kawa.css"/>
    <script src="kawa-ebook.js" type="text/javascript"/>
    <meta name="generator" content="DocBook XSL-NS Stylesheets V1.79.1"/>
    <link rel="prev" href="REPL-Console.xhtml" title="The REPL (read-eval-print-loop) console"/>
    <link rel="next" href="Compiling.xhtml" title="Compiling to byte-code"/>
  </head>
  <body>
    <header/>
    <section class="sect1" title="Exiting Kawa" epub:type="subchapter" id="Exiting">
      <div class="titlepage">
        <div>
          <div>
            <h2 class="title" style="clear: both">Exiting Kawa</h2>
          </div>
        </div>
      </div>
      <p>Kawa normally keeps running as long as there is an active
read-eval-print loop still awaiting input or there is an unfinished
other computation (such as requested by a ‘<code class="literal">-e</code>’ or ‘<code class="literal">-f</code>’ option).
</p>
      <p>To close a read-eval-print-loop, you can type the special
literal <code class="literal">#!eof</code> at top level.  This is recognized as end-of-file.
Typing an end-of-file character (normally ctrl-D under Unix)
should also work, but that depends on your operating system
and terminal interface.
</p>
      <p>If the read-eval-print-loop
is in a new window, you can select ‘<code class="literal">Close</code>’ from the ‘<code class="literal">File</code>’ menu.
</p>
      <p>To exit the entire Kawa session, call the
<a class="link" href="Processes.xhtml#Exiting-the-current-process"><code class="literal">exit</code> procedure</a> (with 0 or 1 integer arguments).
</p>
    </section>
    <footer>
      <div class="navfooter">
        <p>
          Up: <a accesskey="u" href="Running.xhtml">How to start up and run Kawa</a></p>
        <p>
        Previous: <a accesskey="p" href="REPL-Console.xhtml">The REPL (read-eval-print-loop) console</a></p>
        <p>
        Next: <a accesskey="n" href="Compiling.xhtml">Compiling to byte-code</a></p>
      </div>
    </footer>
  </body>
</html>
